Listing 16 illustrates how to use the QTMovieNeedsTimeTable function, to find out if a movie if being progressively downloaded. and the GetMaxLoadedTimeInMovie function, to find out how much of the movie has been downloaded.
Listing 16 Displaying a progressively downloaded movie
WindowPtr movieWindow;
Movie theMovie;
Boolean needsTimeTable;
TimeValue loadedTime = -1;
err = GetDisplayedMovie (&movieWindow, &theMovie);
err = QTMovieNeedsTimeTable (theMovie, &needsTimeTable);
if (needsTimeTable)
{
err = GetMaxLoadedTimeInMovie (theMovie, &loadedTime);
// Display the movie up to the current end
}
| Previous | Chapter Contents | Chapter Top | Next |